home *** CD-ROM | disk | FTP | other *** search
- RENAME
-
- Changes the name of or moves a file or directory.
-
- Format
-
- RENAME [FROM] {<name} [TO | AS] <name>
-
- Template
-
- FROM/A/M,TO=AS/A,QUIET/S
-
- Location
-
- C:
-
- RENAME renames the FROM file or directory with the specified TO name. The
- FROM and TO files or directories must be on the same volume. If the name
- refers to a directory, RENAME changes the directory name without changing the
- names of the files or subdirectories in that directory. When there are
- multiple items in the FROM argument, the TO argument must be a directory.
-
- If you rename a directory or if you use RENAME to give a file another
- directory name, AmigaDOS changes the position of that directory or file in
- the filing system hierarchy. This effectively moves the items.
-
- Example 1:
-
- 1> RENAME Work/Ex1 AS :Test/Ex2
-
- renames the file Ex1 as Ex2 and moves it from the Work directory to the Test
- directory. The Test directory must exist in the root directory for this
- command to work.
-
- Example 2:
-
- 1> RENAME 3.doc 5.doc a.doc TO Docs
-
- moves the 3.doc, 5.doc, and a.doc files to the Docs directory. The Docs
- directory must already exist.
-